from gxl_ai_utils.utils import utils_file
import sys
input_path = sys.argv[1]

dict_list = utils_file.load_dict_list_from_jsonl(input_path)
total_num = len(dict_list)
right_num = 0
for dict_i in dict_list:
    if_same = dict_i['if_same']
    if if_same:
        right_num += 1
print("right_num:", right_num, "total_num:", total_num, "acc:", right_num/total_num)

